<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<HEAD>
     <TITLE>Absolute Lengths - Cascading Style Sheet Units of Measure</TITLE>
     <link rel="stylesheet" type="text/css" href="../../../ss/2.css" id="thecss">
     <script type="text/javascript" src="../../../scripts/csschange.js"></script>
</HEAD>

<BODY onload="readSS()">

<br>
<center>
<table border=3 cellpadding=5 cellspacing=0>
<tr>
    <td rowspan=2><h1 class="pagetitle">Absolute Lengths</h1>
    <b><a href="../../../misc/suppkey.htm">Support Key:</a></b>
    [<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]<br></td>
    <td align=center colspan=2><b class="alert">Other Units</b><br></td>
</tr>
<tr>
    <td><a href="rellength.htm">Relative Length</a><br>
        <a href="url.htm">URL</a><br>
        <a href="color.htm">Color</a><br></td>
    <td><a href="angle.htm">Angle</a><br>
        <a href="time.htm">Time</a><br>
        <a href="frequency.htm">Frequency</a><br></td>
</tr>
<tr><td align=center colspan=3>
<font size=2>= <span class="sitetitle">Index DOT Css</span> by <a 
href="../../../misc/email.htm">Brian Wilson</a> =</font><br>
</td></tr>
</table>
</center>

<div align="center">
<font size=2><a href="../../index.html">Main Index</a> |
   <a href="../../propindex/font.htm">Property Index</a> |
   <a href="../../supportkey/syntax.htm">CSS Support History</a> |
   <a href="../../../history/browsers.htm">Browser History</a></font>
</div>
<hr size=1 align="center" width="25%">

<br><br>
<dl>
<dt><big><b class="mainheading">What is it?</b></big>
    <dd>Absolute length units describe concrete physical dimensions. An
        absolute length consists of an optional sign character ("+"/"-"),
        followed by a number, followed immediately by an absolute length unit.
        If the given length is zero, the sign character and unit measure
        are optional. Values that can not be supported by the rendering device
        should be mapped to the nearest value that <em>CAN</em> be supported.
        <br><br>

        Absolute length units are useful when the parameters of the rendering
        device are known to the author.
</dl>

<dl>
<dt><big><b class="mainheading">Absolute Length Units in CSS</b></big>
<dt><b class="subheading">in</b>
<dt>[<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]
     <dd><b class="l3heading">Reference Measure:</b> 12in=1foot, 1in=2.54cm
     <dd><b class="l3heading">Description:</b> Inches

<dt><b class="subheading">cm</b>
<dt>[<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]
     <dd><b class="l3heading">Reference Measure:</b> 2.54cm=1in, 1cm=10mm
     <dd><b class="l3heading">Description:</b> Centimeters

<dt><b class="subheading">mm</b>
<dt>[<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]
     <dd><b class="l3heading">Reference Measure:</b> 10mm=1cm
     <dd><b class="l3heading">Description:</b> Millimeters

<dt><b class="subheading">pt</b>
<dt>[<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]
     <dd><b class="l3heading">Reference Measure:</b> 12pt=1pc, 1pt=1/72in
     <dd><b class="l3heading">Description:</b> Points

<dt><b class="subheading">pc</b>
<dt>[<b><i class="fs">CSS1</i></b>|<b class="s">CSS2</b>|<b class="s">CSS2.1</b>] 
    [<b><i class="fs">IE3</i></b>|<b class="s">N4</b>|<b class="s">O3.5</b>|<b class="s">S1</b>]
     <dd><b class="l3heading">Reference Measure:</b> 6pc=1in, 1pc=12pt
     <dd><b class="l3heading">Description:</b> Picas
</dl>

<dl>
<dt><big><b class="mainheading">Example</b></big>
    <dd><div class="example"><b class="selector">div</b>
        { <span class="property">margin-left:</span> 1cm }</div>
</dl>

<big><b class="mainheading">Browser Peculiarities</b></big>
<ul>
    <li><b class="alert">Internet Explorer</b>
        <dl>
            <dd><b class="alert2">3.0+:</b>
            <dd>- If no length unit is specified, the units default to pixels. They should be ignored.
        </dl>
    <li><b class="alert">Netscape</b>
        <dl>
            <dd><b class="alert2">4.x+:</b>
            <dd>- The "no length unit = pixels" bug described for Internet Explorer
                is also said to be true for Netscape, but testing in Netscape 4.04
                and 4.5 did not indicate that this is true.
        </dl>
</ul>

<br><br>
<a href="../../../misc/copyright.htm">Boring Copyright Stuff....</a>
<br>

</BODY>
</HTML>